
public abstract class AbstractMediator {

    protected AbstractService serviceA;

    protected AbstractService serviceB;

    public void setServiceA(AbstractService serviceA) {
        this.serviceA = serviceA;
    }

    public void setServiceB(AbstractService serviceB) {
        this.serviceB = serviceB;
    }

    public abstract void callServiceA();

    public abstract void callServiceB();
}